package fr.unice.polytech.chord.core.responses.asynchronous;

import fr.unice.polytech.chord.core.Entry;

/**
 * @author Anthony Parisy
 * @author Laurent Pellegrino
 * @author Marc Valdener
 * 
 * @version 10/28/2009
 */
@SuppressWarnings("serial")
public class EntryResponseMessage implements AsynchronousResponseMessage {

	private Entry<String> entryFound;

	/**
	 * Constructor.
	 * 
	 * @param entry
	 *            the entry to transport.
	 */
	public EntryResponseMessage(Entry<String> entry) {
		this.entryFound = entry;
	}

	/**
	 * Returns the entry associated to this message.
	 * 
	 * @return the entry associated to this message.
	 */
	public Entry<String> getEntryFound() {
		return this.entryFound;
	}

}
